namespace KanbanBoard.Data.NHibernateMaps.Conventions
{
    using FluentNHibernate.Conventions;
    using FluentNHibernate.Conventions.Instances;

    public class ReferenceConvention : IReferenceConvention
    {
        public void Apply(IManyToOneInstance instance)
        {
            instance.Column(Inflector.Net.Inflector.Camelize(instance.Property.Name) + "Id");
        }
    }
}